package com.zetyun.tiger.connector.op.v2;

import com.fasterxml.jackson.annotation.JsonClassDescription;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.zetyun.rt.meta.jsonschema.annotation.JsonSchemaTitle;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Set;

@Getter
@Setter
@ToString
@JsonClassDescription("Redis V2算子参数类")
public class RedisOpV2Parameter {

    @JsonSchemaTitle("master名称")
    @JsonProperty(defaultValue = "redis-master")
    private String masterName;

    @JsonSchemaTitle("sentinel地址")
    @JsonProperty(defaultValue = "rdx1:26379")
    private Set<String> sentinels;

    @JsonSchemaTitle("密码")
    @JsonProperty(defaultValue = "Redis6379")
    private String password;

    @JsonSchemaTitle("数据库")
    @JsonProperty(defaultValue = "7")
    private Integer database;

    @JsonSchemaTitle("日期")
    @JsonProperty(defaultValue = "CB_EVENT_DATE")
    private String dayId;

    @JsonSchemaTitle("开户机构号")
    @JsonProperty(defaultValue = "CB_OPAC_INSTN_NO")
    private String opacInstnNo;

    @JsonSchemaTitle("客户经理号")
    @JsonProperty(defaultValue = "CB_CONNTR_NO")
    private String conntrNo;


    @JsonSchemaTitle("客户号")
    @JsonProperty(defaultValue = "CB_CUST_NO")
    private String custNo;


    @JsonSchemaTitle("内部账号")
    @JsonProperty(defaultValue = "CB_ACCT_NO")
    private String acctNo;

    @JsonSchemaTitle("开销户标识")
    @JsonProperty(defaultValue = "CB_OPAC_TYP")
    private String opacType;


    @JsonSchemaTitle("客户经理客户关系缓存前缀")
    @JsonProperty(defaultValue = "DIM:PEMS:CONNTR:INFO")
    private String conntrPrefix;


    @JsonSchemaTitle("客户经理今日客户")
    @JsonProperty(defaultValue = "ADS:CONNTR:CNT")
    private String custCntPrefix;


    @JsonSchemaTitle("公共揽存客户关系缓存前缀")
    @JsonProperty(defaultValue = "DIM:ORG:")
    private String commonPrefix;


    @JsonSchemaTitle("公共揽存今日客户")
    @JsonProperty(defaultValue = "ADS:ORG:CNT")
    private String commonCntPrefix;
}
